-
Notifications
You must be signed in to change notification settings - Fork 313
feat: add Parent Pointer Tree #662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: add Parent Pointer Tree #662
Conversation
In my opnion, for add a new data structure or algorithm for public, the final interception is reserved by czgdp1807. First step is append the class or function in the beginning array __all__ = [
'MAryTree',
'ParentPointerTree'
] Secondly, add the API in the module's from .m_ary_trees import (
MAryTreeNode, MAryTree,
ParentPointerTreeNode, ParentPointerTree
) For Three, after above two steps, you can import from pydatastructs import MAryTree, ParentPointerTree Lastly, update your new datastructure in docs. |
Yea, points 1, 2, and 4 are valid. I had forgotten to add them. As for point 3, I was following the importing style in the other files. In the other files, they important it differently. For example, from pydatastructs.linear_data_structures.arrays import ArrayForTrees However, The points are nice regardless thanks :) |
References to Issue
Resolves #325
Brief description of what is implemented